<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.virtualmall.common.Constants"%>
<!DOCTYPE html>
<html>
 <head>
  <title> 商品详情 </title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="generator" content="editplus" />
  <meta name="author" content="guanqing" />
  <meta name="keywords" content="" />
  <meta name="description" content="" />
  <jsp:include page="../commons/header.jsp"></jsp:include>
  <script type="text/javascript" src="<%=request.getContextPath() %>/js/customer.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
        var productId = <%=request.getAttribute("productId")%>;

        customer.productDetailInfo(productId);
    });
  </script>
 </head>

 <body>
    <jsp:include page="../commons/menu.jsp"></jsp:include>
	<div class="indexAd"><img src="<%=request.getContextPath() %>/style/images/ad1.png" alt="" /></div>
	
	<div class="titleBox productDeatil">
		<div class="titleBar">
			<h3>商品详情</h3>
		</div>
		<div class="clearall">
			<div class="picDetail"><img id="productImage" src=""/></div>
			<div class="infoDetail">
				<p class="price">￥<font id="discountPrice"></font></p>
				<p>定&nbsp; &nbsp;&nbsp; &nbsp;价：￥<font id="originalPrice"></font> &nbsp; &nbsp; &nbsp; &nbsp;折扣：<font id="discount"></font>折</p>
				<p>库&nbsp; &nbsp;&nbsp; &nbsp;存：<font id="stock"></font></p>
				<p>作&nbsp; &nbsp;&nbsp; &nbsp;者：<font id="author"></font></p>
				<p>出&nbsp;版&nbsp;社：<font id="publishingCompany"></font></p>
				<p>出版时间：<font id="publishingDate"></font></p>
				<div class="wrapBtn">
				    <input type="button" onclick="location.href='<%=request.getContextPath() %>/home?func=shoppingCart'" value="" class="buyBtn" />
				    <input type="button" 
				    onclick="javascript:customer.addInShoppingCart(<%if(session.getAttribute(Constants.USER_ID_SESSION) != null){
				        out.print(request.getAttribute("productId"));
				    }else{
				        out.print(0);
				    }%>);" value="" class="shopBtn" />
				</div>
			</div>
		</div>
	</div>
    <jsp:include page="../commons/footer.jsp"></jsp:include>
 </body>
</html>
